	<head>
	<script type="text/javascript" src="http://www.google.com/jsapi"></script>
	<script type="text/javascript">
	google.load("language", "1");
	
	
	
	function initialize()
	{
		var text = document.getElementById("text").innerHTML;
		google.language.detect(text, function(result)
		{
			if (!result.error && result.language)
			{
				google.language.translate(text, result.language, "en",
				function(result)
				{
					var translated = document.getElementById("translation");
					if (result.translation)
					{
						translated.innerHTML = result.translation;
					}
					else
					{
						translated.innerHTML = '<span style="color:red">Error Translating</span>';
					}
				});
			}
		});
	}
	
	google.setOnLoadCallback(initialize);
	</script>
	</head>
	<body>
	<div id="text">天上掉下來的禮物</div>
	<div id="translation"></div>
	</body>
